
#include "SpaceShooter.h"

void SpaceShooter::cleanup(){

	if(dispSurface)
		SDL_FreeSurface(dispSurface);

	spaceBg.cleanup();

	objectList.clear();

	for(int i=0; i < animationList.size(); i++)
		animationList[i].cleanup();

	animationList.clear();

	for(int i=0; i < textList.size(); i++)
		textList[i]->onCleanup();

	textList.clear();

	TTF_Quit();
	SDL_Quit();
}

